package com.lebang.mapper.setting;

import com.lebang.model.setting.Cash;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@Repository
public interface CashMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Cash record);

    int insertSelective(Cash record);

    Cash selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Cash record);

    int updateByPrimaryKey(Cash record);

    Long total();

    List<Cash> pagging(Cash vo);

    List<BigDecimal> findCashList();

    int selectCountByMoney(@Param("cashmoney") BigDecimal cashMoney, @Param("id") Integer id);

    int selectCountByCashMoney(BigDecimal cashMoney);

    int findSumCountByCash();

    BigDecimal selectMinCash();

    List<Cash> findlist();

    BigDecimal selectMoneyById(Integer id);
}